# coding=utf-8
# 全世界最帅的帅哥
from sqlalchemy.dialects.mssql import TINYINT

from ysgg1_club_comment.modules import db
from ysgg1_club_comment.modules.base_model import BaseModel


class SubjectLiked(BaseModel):
    __tablename__ = 'subject_liked'

    subject_id = db.Column(db.BigInteger, comment="Subject ID")
    like_user_id = db.Column(db.String(32), comment="User OpenID")
    status = db.Column(TINYINT, comment="点赞状态 0不点赞 1点赞")

    def __repr__(self):
        return f"<SubjectLiked {self.id}>"
